ComponentOne Bitmap for UWP
UpdateSubresource<T>(T[],Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method

C1.UWP.DX Assembly > C1.Util.DX.Direct3D11 Namespace > DeviceContext Class > UpdateSubresource Method : UpdateSubresource<T>(T[],Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
Type of the data to upload
A reference to the data to upload.
The destination resource.
The destination subresource.
The row pitch.
The depth pitch.
A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures.
Copies data from the CPU to to a non-mappable subresource region.
Syntax
'Declaration
 
Public Overloads Sub UpdateSubresource(Of T As {New, Struct})( _
   ByVal data() As T, _
   ByVal resource As Resource, _
   Optional ByVal subresource As System.Integer, _
   Optional ByVal rowPitch As System.Integer, _
   Optional ByVal depthPitch As System.Integer, _
   Optional ByVal region As System.Nullable(Of ResourceRegion) _
) 
public void UpdateSubresource<T>( 
   T[] data,
   Resource resource,
   System.int subresource,
   System.int rowPitch,
   System.int depthPitch,
   System.Nullable<ResourceRegion> region
)
where T: new(), struct

Parameters

data
A reference to the data to upload.
resource
The destination resource.
subresource
The destination subresource.
rowPitch
The row pitch.
depthPitch
The depth pitch.
region
A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures.

Type Parameters

T
Type of the data to upload
See Also

Reference

DeviceContext Class
DeviceContext Members
Overload List